Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent multiple simultaneous package list updates #1311

Merged
merged 3 commits into from
Apr 29, 2024

Conversation

anttimaki
Copy link
Collaborator

No description provided.

There seems to be no point in waiting to do this check, so do it as
early as possible. This also makes the first function to only do the
update and consolidates all the auxiliary stuff into the second
function.
Online mod list is currently updated on the background every 5 minutes.
Ideally downloading and processing the mod list wouldn't take that long
that the interval would fire before an earlier round has finished, but
the most popular games have so many mods that on people with slower
connections this seems to happen. Multiple connections then compete for
the same download bandwidth, making the process even slower.
Users can trigger updating the online mod list from the settings view.
Use the status text to show if an update is already in progress and
prevent user actions from triggering another one, since they would just
compete for the same bandwidth and slow down the manager.
@anttimaki anttimaki changed the title Utility mixin fixin Prevent multiple simultaneous package list updates Apr 29, 2024
@anttimaki anttimaki merged commit 4cd8d14 into develop Apr 29, 2024
7 checks passed
@anttimaki anttimaki deleted the utility-mixin-fixin branch April 29, 2024 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant